﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Omes.Model;

namespace Omes.Web.CustomerControls
{
    public partial class IndexControl : System.Web.UI.UserControl, ICustomControl
    {
        public int PageId { set; get; }
        public int BlockName { set; get; }
        public string ItemAction { set; get; }
        public string ChildAction { set; get; }
        //PageModel

        #region

        public string AboutText { set; get; }
        public List<ImageList> CaseImages { set; get; }
        public List<ImageList> ProductImages { set; get; }
        public string ContactDesc { set; get; }
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            //todo:获取数据
            AboutText = "<br/>123123123<br/>123123123123";
            ContactDesc = "<br/>123123123<br/>123123123123<br/>123123123<br/>123123123123";
            ProductImages=new List<ImageList>();
            ProductImages.Add(new ImageList(){Id = 1,LinkPageId = 1,Path = "/images/erji_03.png"});
            ProductImages.Add(new ImageList() { Id = 1, LinkPageId = 1, Path = "/images/erji_05.png" });
            ProductImages.Add(new ImageList() { Id = 1, LinkPageId = 1, Path = "/images/erji_07.png" });
            ProductImages.Add(new ImageList() { Id = 1, LinkPageId = 1, Path = "/images/erji_09.png" });
            ProductImages.Add(new ImageList() { Id = 1, LinkPageId = 1, Path = "/images/erji_12.png" });
            ProductImages.Add(new ImageList() { Id = 1, LinkPageId = 1, Path = "/images/erji_15.png" });

        }

       
    }
}